package com.exception;

/**
 * The Class LMSException.
 * 
 * @author : gbs02399 Created on : Jul 6, 2012 Project : LMS File Name :
 *         LMSException.java
 */
public class LMSException extends Exception {

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** The param. */
	private Object param[];

	/**
	 * Instantiates a new lMS exception.
	 */
	public LMSException() {
		super();
	}

	/**
	 * Instantiates a new lMS exception.
	 * 
	 * @param exception
	 *            the exception
	 */
	public LMSException(final String exception) {
		super(exception);
	}

	/**
	 * Instantiates a new lMS exception.
	 * 
	 * @param exception
	 *            the exception
	 * @param param
	 *            the param
	 */
	public LMSException(final String exception, final Object[] param) {
		super(exception);
		this.param = param;
	}

	/**
	 * Instantiates a new lMS exception.
	 * 
	 * @param exception
	 *            the exception
	 * @param param
	 *            the param
	 * @param throwable
	 *            the throwable
	 */
	public LMSException(final String exception, final Object[] param,
			final Throwable throwable) {
		super(exception, throwable);
		this.param = param;
	}

	/**
	 * Instantiates a new lMS exception.
	 * 
	 * @param throwable
	 *            the throwable
	 */
	public LMSException(final Throwable throwable) {
		super(throwable);
	}

	/**
	 * Instantiates a new lMS exception.
	 * 
	 * @param errorMessage
	 *            the error message
	 * @param throwable
	 *            the throwable
	 */
	public LMSException(final String errorMessage, final Throwable throwable) {
		super(errorMessage, throwable);
	}

	/**
	 * Gets the param.
	 * 
	 * @return the param
	 */
	public Object[] getParam() {
		return param;
	}

	/**
	 * Sets the param.
	 * 
	 * @param param
	 *            the new param
	 */
	public void setParam(final Object[] param) {
		this.param = param;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Throwable#toString()
	 */
	@Override
	public String toString() {
		return super.getMessage();
	}

}
